cmake_minimum_required(VERSION 3.10.2)

project( ComputeGeodesicDistanceOnMesh )

find_package( ITK REQUIRED )
include( ${ITK_USE_FILE} )

add_executable( ComputeGeodesicDistanceOnMesh Code.cxx )
target_link_libraries( ComputeGeodesicDistanceOnMesh ${ITK_LIBRARIES} )

install( TARGETS ComputeGeodesicDistanceOnMesh
  DESTINATION bin/ITKSphinxExamples/Filtering/FastMarching
  COMPONENT Runtime
  )

install( FILES Code.cxx CMakeLists.txt
  DESTINATION share/ITKSphinxExamples/Code/Filtering/FastMarching/ComputeGeodesicDistanceOnMesh
  COMPONENT Code
  )

enable_testing()
add_test( NAME ComputeGeodesicDistanceOnMeshTest
  COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/ComputeGeodesicDistanceOnMesh
    genusZeroSurface01.vtk
    ComputeGeodesicDistanceOnMeshOutput.vtk
)
